<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$('#student_studentAdd_studentNoText').blur(function() {
			var thisVal = $('#student_studentAdd_studentNoText').val();
			if (thisVal != null && thisVal != '') {
				$.ajax({
					type : 'post',
					url : '${pageContext.request.contextPath}/studentAction!queryStudent.action',
					data : {
						studentNo : thisVal
					},
					dataType : 'json',
					success : function(r) {
						if (r.total > 0) {
							$.messager.alert('提示', '学号已经存在，请重新输入！');
						}
					}
				});
			}
		});
	});
</script>
<form id="student_studentAdd_addForm" method="post">
	<table>
		<tr>
			<td style="text-align: right;">姓名：</td>
			<td><input name="studentName" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" />
			</td>
			<td style="text-align: right;">&nbsp;&nbsp;&nbsp;&nbsp;学号：</td>
			<td><input id="student_studentAdd_studentNoText" name="studentNo" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" />
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">性别：</td>
			<td><input type="radio" name="gender" value="01" checked="checked" />&nbsp;男 <input type="radio" name="gender" value="02" />&nbsp;女</td>
			<td style="text-align: right;">职称：</td>
			<td><input name="title" />
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">工作单位：</td>
			<td colspan="3"><input name="corporationName" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" style="width:320px;" readonly="readonly" />&nbsp;
				<button type="button" onclick="openCorpDialog('studentAdd');">浏览</button>
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">职务：</td>
			<td><input name="position" />
			</td>
			<td style="text-align: right;">手机：</td>
			<td><input name="mobile" />
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">电子邮件：</td>
			<td><input name="email" class="easyui-validatebox" data-options="validType:'email'" />
			</td>
			<td style="text-align: right;">QQ：</td>
			<td><input name="qq" />
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">固话：</td>
			<td><input name="phone" />
			</td>
			<td style="text-align: right;">传真：</td>
			<td><input name="fax" />
			</td>
		</tr>
	</table>
	<input name="corporationId" type="hidden" />
</form>